package com.service.util;
import com.service.module.ModuleDAO;
import com.service.module.ModuleDAOHibernate;
import com.service.user.UserDAO;
import com.service.user.UserDAOHibernate;

public class DAOFactory {
	
	public static UserDAO criarUsuarioDAO(){
		UserDAOHibernate userDAO =  new UserDAOHibernate();
		userDAO.setSession(HibernateUtil.getSessionFactory().getCurrentSession());
		return userDAO;
	}
	
	public static ModuleDAO criarModuleDAO(){
		ModuleDAOHibernate moduleDAO = new ModuleDAOHibernate();
		moduleDAO.setSession(HibernateUtil.getSessionFactory().getCurrentSession());
		return moduleDAO;
	}
}
